#!/usr/bin/env python

import sys
import os

sys.path.append('/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/simplejson-1.9.2-py2.5.egg')
sys.path.append('/Users/davidjanes/Sites/auapi')
sys.path.append('/Users/davidjanes/Sites/aumfp')
sys.path.append('/Users/davidjanes/Sites/pybm')
sys.path.append('/Users/davidjanes/Sites/pyecs')

os.environ["HOME"] = "/Users/davidjanes/"

try:

	import wsgiref.handlers
	import wsgiref.headers

	import genx_application

	wsgiref.handlers.CGIHandler().run(genx_application.SemanticForms)
except ImportError, x:
	print "Content-Type: text/plain"
	print ""
	print "Python:", sys.version
	print "Path:", sys.path
	print "Missing:", x
